<div class="portlet box green">
    <div class="portlet-title">
		<div class="caption"><i class="fa fa-cogs"></i>数据列表</div>
		<div class="tools"><a href="javascript:;" class="collapse" data-original-title="" title=""> </a></div>
		<div class="actions">
			<a href="javascript:;" class="btn white btn-sm ajax-search"> <i
				class="fa fa-search"></i> 查询
			</a> <a href="javascript:;" class="btn white btn-sm search-reset"> <i
				class="fa fa-eraser"></i> 清除
			</a>
		</div>
	</div>
    <div class="portlet-body">
    	<div class="tabbable-line ">
			<ul class="nav nav-tabs ">
				<li  ><a href="userInfo/detail?id=$!id" class="ajaxify">基本信息</a></li>
				<li  ><a href="userInfo/orderDetail?id=$!id" class="ajaxify"> 订单记录</a></li>
				<li  ><a href="userInfo/creditDetail?id=$!id"  class="ajaxify"> 信用记录</a></li>
				<li  ><a href="userInfo/scoreDetail?id=$!id" class="ajaxify"> 积分记录</a></li>
				<li  ><a href="userInfo/commendfriendDetail?id=$!id" class="ajaxify"> 推荐会员</a></li>
				<li  ><a href="userInfo/expDetail?id=$!id" class="ajaxify"> 经验值记录</a></li>
				<li  ><a href="userInfo/afterSaleDetail?id=$!id" class="ajaxify"> 售后记录</a></li>
				<li class="active" ><a href="userInfo/invoiceDetail?id=$!id" class="ajaxify">开票记录</a></li>
			</ul>
			<div class="portlet-body form">
			   	<form action="userInfo/invoiceDetail" class="form-horizontal" method="get"  id="searchForm">
					<div class="form-body">
						<div class="row">
							<div class="form-group">
								<div class="col-md-3">
									<label class="col-md-4 control-label">开票类型：</label>
									<div class="col-md-8">
										<select name="invoiceType" class="form-control">
											<option value="">请选择</option>
											<option value="ORDINARY">普通发票</option>
											<option value="VALUEADDED">增值税发票</option>
										</select>
									</div>
								</div>
								<script type="text/javascript">
								</script>
								<div class="col-md-3">
									<label class="col-md-4 control-label">订单号：</label>
									<div class="col-md-8">
										<input type="text" class="form-control" name="orderId" value="$!orderId">
										<input type="hidden" value="$!id" name="id">
									</div>
								</div>
								<div class="col-md-3">
									<label class="col-md-4 control-label">发票抬头</label>
									<div class="col-md-8">
										<input type="text" class="form-control" name="title" value="$!title">
									</div>
								</div>
							</div>
			    		</div>
					</div>
				</form>
			</div>
			
			<div class="tab-content">
				<div class="tab-pane active form">
 					  <div class="dataTables_wrapper no-footer">
						<div class="table-scrollable">
						   <table class="table table-striped table-bordered table-hover" id="tableCategory">
							  	<thead>
								<tr>
									<th>发票号</th>
									<th>所属企业</th>
									<th>开票类型</th>
									<th>开票人</th>
									<th>开票金额</th>
									<th>发票抬头</th>
									<th>社会统一信用代码</th>
									<th>开票时间</th>
									<th>操作</th>
								</tr>
								</thead>
								<tbody>
									#foreach($order in  $!orderPage.result)
										#set($orderInvoice =  $!orderInvoiceMap.get($!order))
										<tr>
											 <td>$!orderInvoice.id</td>
											 <td>$!order.company</td>
											 <td>$!orderInvoice.invoiceType.name</td>
											 <td> </td>
											 <td>$!order.total</td>
											 <td>$!orderInvoice.title</td>
											 <td>$!orderInvoice.taxpayerNumber</td>
											 <td>$!orderInvoice.creatDate</td>
											 <td>
											 <a href="#modelContent" class="btn green btn-outline btn-sm ajax-model-get" data-toggle="modal" thref="/"><i class="fa fa-edit"></i>查看详情</a></td>
									 	</tr>
									#end
								</tbody>
							</table>
						</div>
						#set($page= $!orderPage)
						#set($pageUrl="/userInfo/commendfriendDetail?$!queryString&pageNo=")
						#parse("_page.htm")
					</div>
				</div>
			</div>
		</div>
    </div>
</div>
<script src="/assets/scripts/views-date.js" type="text/javascript"></script>